package string;

public class StringBuilder1 {
    public static void main(String[] args) {
        String str ="撒拉嘿呦";
        StringBuilder str1 = new StringBuilder(str);

        str1.append("么么哒");
        System.out.println(str1);

        str1.replace(0,4,"我爱你");
        System.out.println(str1);

        str1.delete(0,5);
        System.out.println(str1);

        str1.insert(0,"么么么么么");
        System.out.println(str1);
    }
}
